
package com.gemframework.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gemframework.mapper.OrderMapper;
import com.gemframework.model.entity.po.Order;
import com.gemframework.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Title: OrderServiceImpl
 * @Date: 2021-03-10 15:09:52
 * @Version: v1.0
 * @Description: 服务实现类
 * @Author: gem
 * @Email: gemframe@163.com
 * @Copyright: Copyright (c) 2020 wanyong
 * @Company: www.gemframework.com
 */
@Slf4j
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public Integer selOrderStatusCount(Integer status, String creDate,Integer id) {
        return orderMapper.selOrderStatusCount(status,creDate,id);
    }

    @Override
    public List<Order> selOrderListById(Integer id) {
        return orderMapper.selOrderListById(id);
    }
}